package org.power.bus;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author 苗冬冬
 */
@SpringBootApplication(scanBasePackages = "org.power")
@EnableSwagger2
@Configuration
@EnableAsync //开启异步调用
@EnableTransactionManagement
@MapperScan(basePackages = {"org.power.bus.dao"})
public class PowerTransformerFaultApplication {
    public static void main(String[] args) {
        SpringApplication.run(PowerTransformerFaultApplication.class, args);
    }
}
